package com.projet.glb2r.Logo;
//package com.projet.glb2r;
//
//import java.io.File;
//
//import android.app.Activity;
//import android.content.Intent;
//import android.database.Cursor;
//import android.graphics.Bitmap;
//import android.graphics.BitmapFactory;
//import android.net.Uri;
//import android.os.Bundle;
//import android.os.Environment;
//import android.provider.MediaStore;
//
//public class LogoActivity extends Activity{
//	  private static final int SELECT_PHOTO = 100;
//	public void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//		Intent intent = new Intent();
//        intent.setType("image/*");
//        intent.setAction(Intent.ACTION_GET_CONTENT);
//        startActivityForResult(Intent.createChooser(intent,
//                "Select Picture"), SELECT_PHOTO);
//
//    }
//
//	protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent) { 
//        super.onActivityResult(requestCode, resultCode, imageReturnedIntent); 
//
//        switch(requestCode) { 
//        case SELECT_PHOTO:
//            if(resultCode == RESULT_OK){  
//                Uri selectedImage = imageReturnedIntent.getData();
//                String[] filePathColumn = {MediaStore.Images.Media.DATA};
//
//                Cursor cursor = getContentResolver().query(selectedImage, filePathColumn, null, null, null);
//                cursor.moveToFirst();
//
//                int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
//                String filePath = cursor.getString(columnIndex);
//                cursor.close();
//
//
//                Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);
//        
//            }
//        }
//    }
//    }